package com.example.demo.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import lombok.Data;

@Configuration
@ConfigurationProperties(prefix="mytest")
@PropertySource(value="classpath:test.properties")
@Data
public class TestProperties {
	
	private int id;
//	@Value("${mytest.version}")
	private int version;

}
